﻿<%@ Page Title="" Language="C#" MasterPageFile="~/frontpage/index.Master" AutoEventWireup="true" CodeBehind="index.aspx.cs" Inherits="Web.frontpage.index1" %>

<asp:Content ID="head" ContentPlaceHolderID="head" runat="server">
    <script src="js/jquery-1.4.2.js" type="text/javascript"></script>
    <script src="js/jquery.KinSlideshow-1.2.1.min.js" type="text/javascript"></script>
    <script type="text/javascript">
        var moveStyle;
        var rand = parseInt(Math.random() * 4)
        switch (rand) {
            case 0: moveStyle = "left"; break;
            case 1: moveStyle = "right"; break;
            case 2: moveStyle = "down"; break;
            case 3: moveStyle = "up"; break;
        }
        $(function () {
            $("#KinSlideshow1").KinSlideshow({ moveStyle: moveStyle }); 
        })
    </script>
<style type="text/css">
    #KinSlideshow{ overflow:hidden; width:270px; height:240px;}
    
</style>


</asp:Content>
<asp:Content ID="content" ContentPlaceHolderID="content" runat="server"> 
    <div class="left">
        <div class="box_1">
            <div id="KinSlideshow1" >
                <asp:Repeater ID="rp_Pic" runat="server">
                    <ItemTemplate>
                        <a href="javascript:;" style="cursor:default;" target="_blank">
                            <img src='../UploadImages/<%# Eval("PHO_URL")%>' alt='<%#Eval("PHO_TITLE") %>' width="270" height="240" />
                        </a>
                    </ItemTemplate>
                </asp:Repeater>
            </div>
        </div>
        <!--省级竞赛-->
        <div class="box_1">
            <div class="news_title" style="width:270px;">
		        <!--<span style=" font-size:16px; font-weight:700;  ">
                    省级以上竞赛
                </span>-->
                <div class="left_title">
                    省级以上竞赛
                    <a href="Second.aspx?ClassId=3" ><img alt="" src="images/more.gif" /></a>
                </div>
		    </div>
            <table  style=" width:270px;" border="0" cellspacing="5" cellpadding="0" >
                <asp:Repeater ID="Rp_ProvinceCon" runat="server">
                    <ItemTemplate>
                        <tr>
                            <td width="175" >
                                <a href='Third.aspx?ClassId=3&ContestId=<%#Eval("CON_ID") %>'>
                                    <%#Eval("CON_NAME").ToString().Length > 15 ? Eval("CON_NAME").ToString().Substring(0, 15) + "..." : Eval("CON_NAME").ToString()%>
                                </a> 
                            </td>
                            <td width="60" align = "right">
                                <span class="time">
                                     <%#Eval("CON_YEAR") %>年<%#Eval("CON_MONTH") %>月
                                </span>
                            </td>
                        </tr>
                    </ItemTemplate>
                </asp:Repeater>
            </table> 
        </div>        
    </div>
   <%-- <div class="clear">
    </div>--%>
    <div class="right">
        <div class="clear"></div>
        <div class="box_2">
        <div class="left_title">会员中心</div>
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="32%" height="37" valign="middle">用户名：</td>
            <td width="68%" valign="middle">
              <input type="text" name="textfield" id="username" runat="server" class="input_1 inputTxt"/>
            </td>
          </tr>
          <tr>
            <td height="37" valign="middle">密　码：</td>
            <td valign="middle">
              <input type="password" name="textfield2" id="password" runat="server" class="input_2 inputTxt"/>
            </td>
          </tr>
          <%--<tr>
            <td height="37" valign="middle">身　份：</td>
          <td valign="middle">
                <asp:DropDownList ID="userclass" runat="server" Width="125px" >
                    <asp:ListItem  Value="1">学生</asp:ListItem>
                    <asp:ListItem  Value="2">教师</asp:ListItem>
                    <asp:ListItem  Value ="0">管理员</asp:ListItem>
                </asp:DropDownList> 
           </td>
          </tr>--%> 
          <tr>
            <td colspan="2">
              <asp:Button runat="server" OnClick="login"  CssClass="login"  Height="41.5px" />
              <input name="button" type="image" src="images/img_5.gif" style="margin:0 10px;" onclick=""/>
              <input name="input" type="image" src="images/img_6.gif" />
            </td>
          </tr>
        </table>
      </div>
        <div class="box_1">
            <!--最新动态-->
            <div class="news_title">               
                <div class="left_title">
                    最新动态
                    <a href="Second.aspx?ClassId=0"><img alt="" src="images/more.gif" /></a>
                </div>
		    </div>
           <table  style=" width:490px;" border="0" cellspacing="5" cellpadding="0" >
                <asp:Repeater ID="Rp_ConItem" runat="server">
                        <ItemTemplate>
                         <tr>                           
                            <td width="55%" height="18">
                                <a href='Third.aspx?ClassId=7&Id=<%#Eval("PRO_ID")%>&number=4&ContestId=<%#Eval("PRO_CONTESTS")%>'>
                                 <%#Eval("CON_NAME").ToString ().Length>25? Eval("CON_NAME").ToString().Substring(0,25)+"...":Eval("CON_NAME").ToString()%>
                                  <%-- <%#Eval("CON_NAME")%>--%>         <%#Eval("PHA_NAME")%>          
                                </a>
                            </td>
                            <td width="20%" align="center">
                                <span class="time">
                                    <%#((DateTime)Eval("PRO_STARTTIME")).ToString("yyyy-MM-dd")%>
                                </span>
                            </td>
                           
                      </tr>
                           
                        </ItemTemplate>
                    </asp:Repeater>
            </table>
        </div>
        <div class="clear"></div>
    </div>
    <div class="right">
      <div class="box_2">
        <div class="left_title">
            通知公告
            <a href="Second.aspx?ClassId=1"><img alt="" src="images/more.gif" /></a>
        </div>
        <div class="left_nr">
                <ul>
                <asp:Repeater ID="Rp_new" runat="server">
                    <ItemTemplate>
                        <li>
                            <a href="Third.aspx?ClassId=0&Id=<%#Eval("NewsId") %>"><%#Eval("NewsTitle")%></a>
                      </li>
                  </ItemTemplate>
                </asp:Repeater>                  
                </ul>
            </div>
      </div>
      <div class="box_1" >
           <div class="news_title">            
                <div class="left_title">
                    校内竞赛
                    <a href="Second.aspx?ClassId=2"><img alt="" src="images/more.gif" /></a>
                </div>

		    </div>
            <table  style=" width:490px;" border="0" cellspacing="5" cellpadding="0" >
                <asp:Repeater ID="Rp_Notice" runat="server">
                    <ItemTemplate>
                        <tr>
                            <td width="75%" height="18"><a href='Third.aspx?ClassId=2&ContestId=<%#Eval("CON_ID") %>'><%#Eval("CON_NAME").ToString().Length > 25 ? Eval("CON_NAME").ToString().Substring(0, 25) : Eval("CON_NAME").ToString()%></a></td>
                            <td width="20%" align="center"><span class="time"><%#((DateTime)Eval("CON_PUBTIME")).ToString("yyyy-MM-dd")%></span></td>
                        </tr>
                    </ItemTemplate>
                </asp:Repeater>
             </table>
        </div>
    </div>
    <div class="clear"></div>
    <div class="huoban">
        <div class="huoban_title">
            <img alt="" src="images/title_2.gif" /></div>
        <div class="huoban_nr">
            <center>
                <ul>
                    <li>
                        <a href ="http://www.cmathc.com">
                                    <img alt="" src="images/logo1.gif" />
                        </a>
                    </li>
                    <li>
                        <a href ="http://zpy.cstam.org.cn">
                                    <img alt="" src="images/logo2.gif" />
                        </a>
                    </li>
                    <li>
                        <a href ="http://esc.fltrp.com">
                                    <img alt="" src="images/logo3.gif" />
                        </a>
                    </li>
                    <li>
                        <a href ="http://www.mcm.edu.cn">
                                    <img alt="" src="images/logo4.gif" />
                        </a>
                    </li>
                    <li>
                        <a href ="http://www.nuedc.com.cn">
                                    <img alt="" src="images/logo5.gif" />
                        </a>
                    </li>
                    <li>
                        <a href ="http://www.shumo.com">
                                    <img alt="" src="images/logo6.gif" />
                        </a>
                    </li>
                    <li>
                        <a href ="http://www.smartcar.au.tsinghua.edu.cn">
                                    <img alt="" src="images/logo7.gif" />
                        </a>
                    </li>
                    <li>
                        <a href ="http://www.zjcontest.net">
                                    <img alt="" src="images/logo8.gif" />
                        </a>
                    </li>
                </ul>
            </center>
            <div class="clear">
            </div>
        </div>
    </div>
</asp:Content>
